package org.jeecg.modules.zcgl.vo.statistical;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.CommonConstant;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

/**
 * @author 尹涛 * @version V1.0.0
 * @projectName kangxiang-parent
 * @title PersistingRecordsVo
 * @package org.jeecg.modules.zcgl.vo.statistical
 * @description 预存记录统计
 * @date 2021-06-01
 */
@Data
public class PersistingRecordsVo {

    @Excel(name = "资产名称", width = 15, dictTable = "zcgl_customer_info", dicText = "name", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_customer_info", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户名称")
    private String customerId;

    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;

    @Excel(name = "身份证号/信用代码", width = 15)
    @ApiModelProperty(value = "身份证号/信用代码")
    private String code;

    @Excel(name = "所属公司", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id", dicKey ="parent_id='" + CommonConstant.BASE_DEPART_ID + "'")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "所属公司")
    private String companyId;

    @Excel(name = "预存金额", width = 15)
    @ApiModelProperty(value = "预存金额")
    private BigDecimal amountMoney;

    @Excel(name = "付款方式", width = 15)
    @ApiModelProperty(value = "付款方式")
    private Integer payType;

    @Excel(name = "付款时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "付款时间")
    private java.util.Date tradeTime;

    @Excel(name = "交易单号", width = 15)
    @ApiModelProperty(value = "交易单号")
    private String orderNo;

    @Excel(name = "变动后余额", width = 15)
    @ApiModelProperty(value = "变动后余额")
    private BigDecimal balance;

    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;


    //查询参数
    private String selections;
}
